module.exports = {
  lintOnSave: true,
  productionSourceMap: false,

  devServer: {
    port: 1234,
    host: '127.0.0.1',
    https: false,
    open: false,
    proxy: {
      '/api': {
        wx: true,
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
      '/mockapi': {
        wx: true,
        target: 'https://console-mock.apipost.cn/mock/c48330ac-fab6-4410-b729-1c1f60c58e5e',
        changeOrigin: true,
        pathRewrite: {
          '^/mockapi': ''
        }
      },
    }
  }
}
